﻿using Demo.Api.Entities;

namespace Demo.Api.Models
{
    public class AffairDto
    {
        /// <summary>
        ///     事项名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        ///     说明
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        ///     流程图Id
        /// </summary>
        public long FlowChartId { get; set; }

        public AffairDo ToAffairDo()
        {
            return new AffairDo { Name = Name, FlowChartId = FlowChartId, Remarks = Remarks };
        }
    }
}